<?php
class Contact extends MY_Controller{

	function __construct()
	{
		parent::__construct();
	}

	public function index()
	{
		$this->load->library('googlemaps');
		$config = array('center'=>"50.6966270, 4.3627000",'zoom'=>17,'map_height'=>'300','map_type'=>'ROADMAP');
		$config['styles'] = array(
  array( "definition"=>array(
    array("featureType"=>"landscape.natural", "stylers"=>array(array("visibility"=>"off"))),
     array("featureType"=>"poi.bussiness", "elementType"=>"geometry.fill", "stylers"=>array(array("visibility"=>"off"))),
    array("featureType"=>"landscape.man_made", "elementType"=>"geometry.stroke","stylers"=>array(array("color"=>"#000000"))),
    array("featureType"=>"road.local","elementType"=>"geometry", "stylers"=>array(array("color"=>"#E6B35A")))
  ))
);
		$marker = array();
		$marker['position'] = "50.6966270, 4.3627000";
		$marker['title'] = "Le Super Grill | Brain l'Alleud";
		$marker['animation'] = 'DROP';
		$marker['icon'] = base_url('resources/frontpage/imgs/gmapMaker.png');
		$marker['infowindow_content'] = "Le Super Grill | Brain l'Alleud";
		$marker_2 = array();
		$marker_2['position'] = "50.6966270, 4.3592000";
		$marker_2['title'] = "Delhaize";
		$marker_2['animation'] = 'DROP';
		$marker_2['icon'] = base_url('resources/frontpage/imgs/delhaize.png');
		$marker_2['infowindow_content'] = "Delhaize";
		$marker_3 = array();
		$marker_3['position'] = "50.6971000, 4.3639000";
		$marker_3['title'] = "Colruyt";
		$marker_3['animation'] = 'DROP';
		$marker_3['icon'] = base_url('resources/frontpage/imgs/colruyt.png');
		$marker_3['infowindow_content'] = "Colruyt";
		$this->googlemaps->initialize($config);
		$this->googlemaps->add_marker($marker);
		$this->googlemaps->add_marker($marker_2);
		$this->googlemaps->add_marker($marker_3);
		$data['map'] = $this->googlemaps->create_map();
		$data['title'] = $this->title('Contact');
		$this->load->view($this->theme.'/header',$data);
		$this->load->view($this->theme.'/contact');
		$this->load->view($this->theme.'/footer');
	}


}